package lium.lbs.lbsim;

import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.MotionEvent;
import android.view.View;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition;
import lium.lbs.lbsim.activity.BaseActivity;

import java.util.Timer;
import java.util.TimerTask;

public class TempActivity extends BaseActivity {
    /*
     helper!!.getView<TextView>(R.id.zx_start1).setTextSize(TypedValue.COMPLEX_UNIT_SP,20f)
        helper.getView<TextView>(R.id.zx_start2).setTextSize(TypedValue.COMPLEX_UNIT_SP,20f)

    public
     */

    public static final String 	  mSenderId="right";
    public static final String     mTargetId="left";
    @Override
    protected int getLayoutId() {
        return 0;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        View startVoice = null;


        Glide.with(this)
                .load("")
                .into(new SimpleTarget<Drawable>() {
                    @Override
                    public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {

                    }
                });


        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {

            }
        },0,1);
        startVoice.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                switch (event.getAction()) {
                    case MotionEvent.ACTION_DOWN:

                        break;
                    case MotionEvent.ACTION_MOVE:

                        break;
                    case MotionEvent.ACTION_UP:

                        break;
                }
                return false;
            }
        });


//        intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);

//        RxView.clicks(null)
//                .throttleFirst(3, TimeUnit.SECONDS)
//                .subscribe(new Action1<Void>() {
//                    @Override
//                    public void call(Void aVoid) {
//                        Log.i(TAG, "call: ");
//
//                    }
//                });

    }

    @Override
    protected void getNetWorkData() {

    }
}
